Skip to main content

Bypass Cache

(MI.CacheBypassPolicy)

Overview

A Bypass Cache rule instructs the CDN to always fetch the content from the origin server.

For example, if your use case relies on real-time data or if you frequently update a particular content item and you want the latest version to be fetched from the origin server on every request, you can configure a Bypass Cache rule at the path level to ensure that the most up-to-date version of that content item is always served.

Note that when you set a Bypass Cache rule, previously cached content is not evicted from the cache.

Example

In this example, the Bypass-Cache rule is added to the *.m3u8 path configuration so that requests for manifest files will always be fetched from the origin and not served from cache.

"paths": [
{
"path-pattern": {
"pattern": "*.m3u8",
"case-sensitive": false
},
"path-metadata": {
"metadata": [
{
"generic-metadata-type": "MI.CacheBypassPolicy",
"generic-metadata-value": {
"bypass-cache": true
}
}
]
}
}
]

Supported Properties

FieldValid Values
bypass-cachetrue, false